import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login/login.vue'
import connect from '../views/connect/connect.vue'
import Main from '@/components/Main'
import Header from '@/components/Header'


Vue.use(VueRouter)

const routes = [
  { path: '/',  redirect:{name: 'login'} },
  { path:'/login', name:'login' , component:login},
  { path:'/connect', name:'connect' , component:connect},
  { path:'/Main', name:'Main' , component:Main},
  { path:'/Header', name:'Header' , component:Header},

]

const router = new VueRouter({
  routes
})

export default router
